console.log("romise基础hh\n")
function runAsync(){
    let p = new Promise(function(resolve, reject){
         setTimeout(function(){
              console.log('执行异步操作1')
              resolve('promise1')
         }, 1000)
    })
    return p
}
runAsync().then(function(data){
          console.log(data)
     })